<?php
	// Jika sudah login
	if (isset($_SESSION['IdKaryawan']) && isset($_SESSION['Level']))
	{
			// content untuk Home 
			if ($_GET['Content'] == "")
				{
					include("content/home.php");
				}
			
			// content untuk Home 
			if ($_GET['Content'] == "Home")
				{
					include("content/home.php");
				}
				
			// content Form Surat Cuti Reguler
			if ($_GET['Content'] == "SuratCutiReguler")
				{
					include("content/surat_cuti_reguler.php");
				}
			
			// content Surat Cuti Saya
			if ($_GET['Content'] == "SuratCutiSaya")
				{
					include("content/surat_cuti_saya.php");		
				}
				
			// content Pengesahan surat
			if ($_GET['Content'] == "PengesahanSurat")
				{
					include("content/pengesahan_surat.php");			
				}
			
			// content Cuti Bersama
			if ($_GET['Content'] == "CutiBersama" && $_SESSION['Level'] == "HRD")
				{
					include("content/cuti_bersama.php");	
				}
					
			// content Form Cuti Bersama
			if ($_GET['Content'] == "FormCutiBersama" && $_SESSION['Level'] == "HRD")
				{
					include("content/form_cuti_bersama.php");
				}
			
			// content Penolakan cuti bersama
			if ($_GET['Content'] == "PenolakanCutiBersama" && $_SESSION['Level'] == "HRD")
				{
					include("content/penolakan_cuti.php");
				}
			
			// content Form Penolakan Cuti Bersama
			if ($_GET['Content'] == "FormPenolakanCutiBersama" && $_SESSION['Level'] == "HRD")
				{
					include("content/form_penolakan_cuti.php");
				}
			
			// content Cuti khusus
			if ($_GET['Content'] == "CutiKhusus" && $_SESSION['Level'] == "HRD")
				{
					include("content/cuti_khusus.php");
				}
			
			// content Form cuti khusus
			if ($_GET['Content'] == "FormCutiKhusus" && $_SESSION['Level'] == "HRD")
				{
					include("content/form_cuti_khusus.php");
				}
			
			// content Data Karyawan
			if ($_GET['Content'] == "DataKaryawan")
				{
					include("content/data_karyawan.php");
				}
				
			// content Data Karyawan
			if ($_GET['Content'] == "InputKaryawan")
				{
					include("content/input_karyawan.php");
				}
			
			// content Edit data karyawan
			if ($_GET['Content'] == "EditDataKaryawan" )
				{
					include("content/edit_data_karyawan.php");
				}
			
			// content Surat cuti
			if ($_GET['Content'] == "SuratCuti" && $_SESSION['Level'] == "HRD")
				{
					include("content/surat_cuti.php");		
				}
			
			// content pdf
			if ($_GET['Content'] == "PDF" && $_SESSION['Level'] == "HRD")
				{
					include("content/pdf.php");		
				}
				
			// content unutuk melihat surat
			if ($_GET['Content'] == "LihatSurat")
				{
					include("content/lihat_surat.php");	
				}
			
			// content unutuk edit surat 1
			if ($_GET['Content'] == "EditSurat")
				{
					include("content/edit_surat_1.php");	
				}
			
			// content unutuk edit surat 2
			if ($_GET['Content'] == "EditSurat2")
				{
					include("content/edit_surat_2.php");	
				}
			
			// content untuk seting email
			if ($_GET['Content'] == "Setting")
				{
					include("content/setting.php");	
				}
				
			// content untuk seting email
			if ($_GET['Content'] == "update")
				{
					include("update.txt");	
				}
	}
	
	// Jika belum Login
	else	
	{
		
		// Menampilkan Form Login
		echo "	<form method='post' action='proses.php'>
					<table align='center'>
						<tr>
							<td colspan=2><h1>Login</h1></td>
						</tr>
						<tr>
							<td>TLC</td>
							<td><input type='text' name='Tlc'></td>
						</tr>
						<tr>
							<td>Password</td>
							<td><input type='password' name='Password'></td>
						</tr>
						<tr>
							<td colspan=2><input type='submit' name='ProsesLogin' value='Login'></td>
						</tr>
					</table>
				</form>
			";
	}

?>